package com.xinghen.security.core.validate.code.image;

import com.xinghen.security.core.validate.code.ValidateCode;
import lombok.Data;

import java.awt.image.BufferedImage;
import java.time.LocalDateTime;

/**
 * @author xinghen
 * @ClassName: ImageValidateCode
 * @Package: com.xinghen.security.core.validate.code.image
 * @Description 图片验证码
 * @create 2018-04-18 15:27
 */
@Data
public class ImageValidateCode extends ValidateCode {

    private BufferedImage image;

    public ImageValidateCode(BufferedImage image, String code, int expireIn) {
        super(code, expireIn);
        this.image = image;
    }

    public ImageValidateCode(BufferedImage image, String code, LocalDateTime expireTime) {
        super(code, expireTime);
        this.image = image;
    }

}
